import { MockMethod } from "vite-plugin-mock"

export default [
  {
    url: "/api/login",
    method: "post",
    response: (res: Record<string, { [x: string]: unknown }>) => {
      return {
        code: 0,
        data: {
          token: "Bearer Token",
          username: res.body.username || ""
        }
      }
    }
  }
] as MockMethod[]
